package com.chuangjiangx.member.basic.dao.model;

import java.util.Date;

public class InMember {
    private Long id;

    private String memberCardNum;

    private String nickName;

    private String name;

    private String mobile;

    private Byte sex;

    private Date birthday;

    private Long registerStoreId;

    private Byte registerTerminalType;

    private String registerTerminalNum;

    private Long registerStoreUserId;

    private Date registerTime;

    private Date updateTime;

    private Byte enable;

    private Long merchantId;

    private Long registerMerchantUserId;

    private Byte agreement;

    private String headimgurl;

    private Integer syncWxStatus;

    private Date syncWxTime;

    private String faceId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMemberCardNum() {
        return memberCardNum;
    }

    public void setMemberCardNum(String memberCardNum) {
        this.memberCardNum = memberCardNum == null ? null : memberCardNum.trim();
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName == null ? null : nickName.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    public Byte getSex() {
        return sex;
    }

    public void setSex(Byte sex) {
        this.sex = sex;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Long getRegisterStoreId() {
        return registerStoreId;
    }

    public void setRegisterStoreId(Long registerStoreId) {
        this.registerStoreId = registerStoreId;
    }

    public Byte getRegisterTerminalType() {
        return registerTerminalType;
    }

    public void setRegisterTerminalType(Byte registerTerminalType) {
        this.registerTerminalType = registerTerminalType;
    }

    public String getRegisterTerminalNum() {
        return registerTerminalNum;
    }

    public void setRegisterTerminalNum(String registerTerminalNum) {
        this.registerTerminalNum = registerTerminalNum == null ? null : registerTerminalNum.trim();
    }

    public Long getRegisterStoreUserId() {
        return registerStoreUserId;
    }

    public void setRegisterStoreUserId(Long registerStoreUserId) {
        this.registerStoreUserId = registerStoreUserId;
    }

    public Date getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Date registerTime) {
        this.registerTime = registerTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Byte getEnable() {
        return enable;
    }

    public void setEnable(Byte enable) {
        this.enable = enable;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    public Long getRegisterMerchantUserId() {
        return registerMerchantUserId;
    }

    public void setRegisterMerchantUserId(Long registerMerchantUserId) {
        this.registerMerchantUserId = registerMerchantUserId;
    }

    public Byte getAgreement() {
        return agreement;
    }

    public void setAgreement(Byte agreement) {
        this.agreement = agreement;
    }

    public String getHeadimgurl() {
        return headimgurl;
    }

    public void setHeadimgurl(String headimgurl) {
        this.headimgurl = headimgurl == null ? null : headimgurl.trim();
    }

    public Integer getSyncWxStatus() {
        return syncWxStatus;
    }

    public void setSyncWxStatus(Integer syncWxStatus) {
        this.syncWxStatus = syncWxStatus;
    }

    public Date getSyncWxTime() {
        return syncWxTime;
    }

    public void setSyncWxTime(Date syncWxTime) {
        this.syncWxTime = syncWxTime;
    }

    public String getFaceId() {
        return faceId;
    }

    public void setFaceId(String faceId) {
        this.faceId = faceId == null ? null : faceId.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", memberCardNum=").append(memberCardNum);
        sb.append(", nickName=").append(nickName);
        sb.append(", name=").append(name);
        sb.append(", mobile=").append(mobile);
        sb.append(", sex=").append(sex);
        sb.append(", birthday=").append(birthday);
        sb.append(", registerStoreId=").append(registerStoreId);
        sb.append(", registerTerminalType=").append(registerTerminalType);
        sb.append(", registerTerminalNum=").append(registerTerminalNum);
        sb.append(", registerStoreUserId=").append(registerStoreUserId);
        sb.append(", registerTime=").append(registerTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", enable=").append(enable);
        sb.append(", merchantId=").append(merchantId);
        sb.append(", registerMerchantUserId=").append(registerMerchantUserId);
        sb.append(", agreement=").append(agreement);
        sb.append(", headimgurl=").append(headimgurl);
        sb.append(", syncWxStatus=").append(syncWxStatus);
        sb.append(", syncWxTime=").append(syncWxTime);
        sb.append(", faceId=").append(faceId);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        InMember other = (InMember) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMemberCardNum() == null ? other.getMemberCardNum() == null : this.getMemberCardNum().equals(other.getMemberCardNum()))
            && (this.getNickName() == null ? other.getNickName() == null : this.getNickName().equals(other.getNickName()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile()))
            && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
            && (this.getBirthday() == null ? other.getBirthday() == null : this.getBirthday().equals(other.getBirthday()))
            && (this.getRegisterStoreId() == null ? other.getRegisterStoreId() == null : this.getRegisterStoreId().equals(other.getRegisterStoreId()))
            && (this.getRegisterTerminalType() == null ? other.getRegisterTerminalType() == null : this.getRegisterTerminalType().equals(other.getRegisterTerminalType()))
            && (this.getRegisterTerminalNum() == null ? other.getRegisterTerminalNum() == null : this.getRegisterTerminalNum().equals(other.getRegisterTerminalNum()))
            && (this.getRegisterStoreUserId() == null ? other.getRegisterStoreUserId() == null : this.getRegisterStoreUserId().equals(other.getRegisterStoreUserId()))
            && (this.getRegisterTime() == null ? other.getRegisterTime() == null : this.getRegisterTime().equals(other.getRegisterTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getEnable() == null ? other.getEnable() == null : this.getEnable().equals(other.getEnable()))
            && (this.getMerchantId() == null ? other.getMerchantId() == null : this.getMerchantId().equals(other.getMerchantId()))
            && (this.getRegisterMerchantUserId() == null ? other.getRegisterMerchantUserId() == null : this.getRegisterMerchantUserId().equals(other.getRegisterMerchantUserId()))
            && (this.getAgreement() == null ? other.getAgreement() == null : this.getAgreement().equals(other.getAgreement()))
            && (this.getHeadimgurl() == null ? other.getHeadimgurl() == null : this.getHeadimgurl().equals(other.getHeadimgurl()))
            && (this.getSyncWxStatus() == null ? other.getSyncWxStatus() == null : this.getSyncWxStatus().equals(other.getSyncWxStatus()))
            && (this.getSyncWxTime() == null ? other.getSyncWxTime() == null : this.getSyncWxTime().equals(other.getSyncWxTime()))
            && (this.getFaceId() == null ? other.getFaceId() == null : this.getFaceId().equals(other.getFaceId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMemberCardNum() == null) ? 0 : getMemberCardNum().hashCode());
        result = prime * result + ((getNickName() == null) ? 0 : getNickName().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getMobile() == null) ? 0 : getMobile().hashCode());
        result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
        result = prime * result + ((getBirthday() == null) ? 0 : getBirthday().hashCode());
        result = prime * result + ((getRegisterStoreId() == null) ? 0 : getRegisterStoreId().hashCode());
        result = prime * result + ((getRegisterTerminalType() == null) ? 0 : getRegisterTerminalType().hashCode());
        result = prime * result + ((getRegisterTerminalNum() == null) ? 0 : getRegisterTerminalNum().hashCode());
        result = prime * result + ((getRegisterStoreUserId() == null) ? 0 : getRegisterStoreUserId().hashCode());
        result = prime * result + ((getRegisterTime() == null) ? 0 : getRegisterTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getEnable() == null) ? 0 : getEnable().hashCode());
        result = prime * result + ((getMerchantId() == null) ? 0 : getMerchantId().hashCode());
        result = prime * result + ((getRegisterMerchantUserId() == null) ? 0 : getRegisterMerchantUserId().hashCode());
        result = prime * result + ((getAgreement() == null) ? 0 : getAgreement().hashCode());
        result = prime * result + ((getHeadimgurl() == null) ? 0 : getHeadimgurl().hashCode());
        result = prime * result + ((getSyncWxStatus() == null) ? 0 : getSyncWxStatus().hashCode());
        result = prime * result + ((getSyncWxTime() == null) ? 0 : getSyncWxTime().hashCode());
        result = prime * result + ((getFaceId() == null) ? 0 : getFaceId().hashCode());
        return result;
    }
}